<?php
include_once "../include/image/image.php";

class imageInRow extends image{
/*
*This method builds the line for an image:
*
*/

	//Propreties

	//Methods
	public function __construct($newImagePath)
	{
		parent::__construct($newImagePath,false);
		$this->fullImagePath = $newImagePath;
		
	}

	public function printImage($width, $height)
	{
		$toReturn = "";
		$toReturn .= '<td>';
		//$toReturn .= '<a href="'.$this->getLargeImagePath().'" rel="[gall1]" title="first picture">';
		$toReturn .='<img src="'.$this->getLargeImagePath().'"'.($width != ''? 'width="'.$width.'"':'').($height != ''? 'height="'.$height.'"':'').'/>';
		//$toReturn .= '</a>';
		$toReturn .= '</td>';
		
		return $toReturn;
	}
}
?>